package com.example.kafka.integration;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

public interface Topic {

    String INPUT = "receiver";  //自定义名
    String OUTPUT = "sender";  //自定义名
    @Input(INPUT)
    SubscribableChannel receiver();
    @Output(OUTPUT)
    MessageChannel sender();

}
